//
//  ST_MaidWayProtocol.swift
//  btvideo
//
//  Created by Jason on 2021/9/24.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import Foundation
import MBProgressHUD

protocol ST_TIANPaymentTransactionStateDelegate where Self : UIViewController {
    
    func transaction_succeed()
    
    func show_tip(str: String)
    
}

extension ST_TIANPaymentTransactionStateDelegate {
    
    func show_tip(str: String) {
        let hud = MBProgressHUD.showAdded(to: self.view, animated: true)
        hud.mode = .text
        hud.label.text = str
        hud.hide(animated: true, afterDelay: 2)
    }
    
}
